<template>
    <div>
       <diV class="recommendTitle">周末去哪儿</diV>
       <ul>
           <li class="item border-bottom" v-for="item in recommendList" :key="item.id">
             
                  <div class="item-img-wrapper">
                       <img class="item-img" :src="item.imgUrl" :alt="item.title">
                  </div>
               <div class="item-info">
                   <p class="item-title">{{item.title}}</p>
                    <p class="item-desc">{{item.desc}}</p>
                   
               </div>
           </li>
       </ul>
    </div>
</template>

<script>
export default {
    name:'HomeWeekend',
    data() {
        return {
            recommendList:[
                {
                    id:'001',
                    imgUrl:'http://img1.qunarzz.com/sight/source/1505/19/58f233e11df7ef.jpg_r_640x214_6b42c9fc.jpg',
                    title:'西安必打卡',
                    desc:'寻长安梦，开启穿越的圆梦之旅',

                },
                {
                    id:'002',
                    imgUrl:'http://img1.qunarzz.com/sight/source/1811/63/808c022b285a2c.jpg_r_640x214_ad984479.jpg',
                    title:'探寻文化古都',
                    desc:'一场时空穿越的旅行，探寻历史悠久的文化古都！寻觅历史留下的点点足迹，细细品味古人的伟大',
                    
                },
                {
                    id:'003',
                    imgUrl:'http://img1.qunarzz.com/sight/source/1511/14/1cf5dc2ecbfc16.jpg_r_640x214_b4b3a58a.jpg',
                    title:'醉美丝路行',
                    desc:'情系西北，中国梦丝路行',
                    
                }

            ]
        }
    },
}
</script>

<style lang="stylus" scoped>
 @import '~styles/mixins.styl';
    .recommendTitle
      margin-top .2rem
      line-height .8rem
      background-color #eee
      text-indent .2rem
    .item-img-wrapper
      overflow hidden
      height 0  
      padding-bottom 33.9%
      .item-img
        width 100%
    .item-info
        padding .1rem
        min-width 0
       .item-title
         ellipsis()  
         line-height .54rem
         font-size .32rem
       .item-desc
         ellipsis()
         line-height .4rem
         color #616161
              
</style>
